package com.matt.order.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerDto implements Serializable {
    private Integer customerId;
    private String customerName;
    private String customerGender;
    private String customerChatName;
    private String customerKookName;
    private String customerAlipayName;
    private String customerSource;
    private String customerBlacklist;
    private Double customerAmount;
    private String customerNotes;
    private String customerCreatime;
    private String customerUpdate;
    private String orderSettlementTime;
    private String SumPay;
    private String customerGenderPer;
    private String customerSourcePer;
    private String customerPaySum;

    public String getFmtGender() {
        if ("1".equals(customerGender)) {
            return "男";
        } else if ("2".equals(customerGender)) {
            return "女";
        } else {
            return "不详";
        }
    }
}
